package designPattern.composite;

public class Department extends OrganizationCompoment{

    public Department(String name, String des) {
        super(name, des);
    }

    //因为是叶子节点，所有不聚合，也不重写add，remove方法

    @Override
    protected void print() {
        System.out.println(getName());
    }


}
